﻿using System;
using System.Windows.Data;

namespace ULSDeobfuscator {
    /// <summary>
    /// Interaction logic for ComplexFiltersWindow.xaml
    /// </summary>
    public partial class ManageColorRulesWindow {
        public ManageColorRulesWindow() {
            InitializeComponent();

            // An exception to MVVM. It works fine to set these bindings in XAML, but the designer insists on showing a window of size 0,0
            Binding bWidth = new Binding("WindowWidth")
            {
                Mode = BindingMode.TwoWay
            };
            SetBinding(WidthProperty, bWidth);

            Binding bHeight = new Binding("WindowHeight")
            {
                Mode = BindingMode.TwoWay
            };
            SetBinding(HeightProperty, bHeight);
        }
    }
}
